home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / smashing.swf / scripts / DefineSprite_62_mcBonus / frame_9 / DoAction.as
Text File  |  2008-03-12  |  673b  |  39 lines

  1. if(_parent._parent.gamePaused)
  2. {
  3.    gotoAndPlay(_currentframe - 1);
  4. }
  5. else if(!brickSmashed)
  6. {
  7.    readyForAction = true;
  8.    if(getTimer() < pause)
  9.    {
  10.       if(-2000 < getTimer() - pause)
  11.       {
  12.          if(flashCounter < 2)
  13.          {
  14.             bonus._visible = false;
  15.             flashCounter++;
  16.          }
  17.          else if(flashCounter < 4)
  18.          {
  19.             bonus._visible = true;
  20.             flashCounter++;
  21.          }
  22.          else
  23.          {
  24.             flashCounter = 0;
  25.          }
  26.       }
  27.       gotoAndPlay(_currentframe - 1);
  28.    }
  29.    else
  30.    {
  31.       expired = true;
  32.       play();
  33.    }
  34. }
  35. else
  36. {
  37.    gotoAndPlay(10);
  38. }
  39.